package pl.krgr.vm2.ui.actions;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;

import pl.vm.service.SeazonService;

public class DeleteSeazonAction extends ActionSupport {
private static final long serialVersionUID = 1L;
	
	private long seazonId;
	
	@Autowired
	private SeazonService seazonService;
	
	public String execute() throws Exception {
		seazonService.removeSeazon(seazonId);
		return SUCCESS;
	}

	public long getSeazonId() {
		return seazonId;
	}

	public void setSeazonId(long seazonId) {
		this.seazonId = seazonId;
	}
}
